package com.example.login.model

import com.example.login.api.LoginApiServer
import com.example.login.entity.LoginData
import com.example.login.entity.LoginEntity
import okhttp3.RequestBody
import javax.inject.Inject

class LoginRepository @Inject constructor(private val apiServer: LoginApiServer){
    suspend fun loginToServer(pwd:String,name:String):LoginEntity<LoginData> = apiServer.loginToServer(pwd,name)
}